package com.gupao.spring.pattern.factory.abstr;

import com.gupao.spring.pattern.factory.HuaWei;
import com.gupao.spring.pattern.factory.Phone;
import com.gupao.spring.pattern.factory.Vivo;
import com.gupao.spring.pattern.factory.XiaoMi;

/**
 * 手机统一工厂
 */
public  class PhoneFactory  extends  AbstractFactory{

    @Override
    public Phone getXiaoMi() {
        return new XiaoMi();
    }

    @Override
    public Phone getHuawei() {
        return new HuaWei();
    }

    @Override
    public Phone getVivo() {
        return new Vivo();
    }
}
